<!-- script for ckeditor <END_DECRIPT_TAG>
<script type="text/javascript" src="{$base_media}/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="{$base_media}/ckeditor/ckfinder/ckfinder.js"></script>
<START_DECRIPT_TAG> end script for ckeditor -->
<script type="text/javascript" charset="utf-8">
        // tabbed forms box
        $(function () {ldelim}
            var tabContainers = $('div#forms > div.innerContent'); // change div#forms to your new div id (example:div#pages) if you want to use tabs on another page or div.
            tabContainers.hide().filter(':first').show();

            $('ul.switcherTabs a').click(function () {ldelim}
                tabContainers.hide();
                tabContainers.filter(this.hash).show();
                $('ul.switcherTabs li').removeClass('selected');
                $(this).parent().addClass('selected');
                return false;
            {rdelim}).filter(':first').click();
        {rdelim});

        function checkForm()
        {ldelim}
            if (jQuery.trim($(":text").val()) == '') {ldelim}
                alert('##ROOM_KIND_JS_INPUT_NAME##');
                return false;
            {rdelim}

            return true;
        {rdelim}
        /**
         * executeCancel
         */
        function executeCancel()
        {ldelim}
            window.history.back(-1);
        {rdelim}

        <JS_ROOT_CATEGORY>
</script>

<div id="leftBox">
{if $msgBoxDisp != ''}
<div class="{$clsType}Box" style="display:{$msgBoxDisp}">
  <div class="{$clsType}BoxTop">&nbsp;</div>
      {foreach from=$messages item=arrMsg}
        {foreach from=$arrMsg item=msg}
        <div class="msgBoxContent {$clsIcon}">
          <p>{$msg}</p>
          </div>
      {/foreach}
    {/foreach}
</div>
{/if}
<form id="mainForm" name="mainForm" method="post" action="{$actionForm}" enctype="multipart/form-data">
<div class="contentBox" id="forms">
  <div class="contentBoxTop">
    <h3>##TEM_ADD_EDIT## <TPL_MODULE_VIEW></h3>
    <ul class="switcherTabs">
    {foreach item=arrLang from=$langList}
        {if $arrLang.default eq 1}
          <li class="selected"><a href="#box-{$arrLang.id}">{$arrLang.name}</a></li>
      {else}
          <li><a href="#box-{$arrLang.id}">{$arrLang.name}</a></li>
      {/if}
    {/foreach}
    </ul>
  </div>
    <ROOT_CATEGORY_TPL>
  {foreach item=arrLang from=$langList}
      <div class="innerContent" id="box-{$arrLang.id}">

          <FORM_FIELD>
          <p>
            <input name="" type="image" src="{$base_media}/images/bt_submit.gif" onclick="return checkForm();" />
          </p>

      </div>
  {/foreach}

</div>
<input type="hidden" name="<TPL_TBL_PRI_ID>" id="<TPL_TBL_PRI_ID>" value="{$<TPL_TBL_PRI_ID>}"/>
<HIDDEN_ROOT_CATEGORY>
</form>
</div>
<script type="text/javascript" charset="utf-8">
<TEXTARE_JS>
</script>
<div id="sidebar" class="rightBoxes">
  <div class="rightBoxesTop">
    <h3>##LIST_FUNC##</h3>
  </div>
  <div class="rightContent">
    <ul id="sidebarLinks">
      <li><a href="javascript:void(0);" onclick="javascript:executeCancel()">##SUBMIT_CANCEL##</a></li>
    </ul>
  </div>
</div>
<!-- end of #sidebar -->